export const nodelistfromend = [
  {
    id: '111',
    node_name: '自定义变量',
    node_type: 0,
    created_at: '2020-07-11',
    updated_at: '2020-07-11',
    node_script: 'javascript',
    node_id: 'VARIABLE_NODE',
    node_conf: {
      display: '自定义变量',
      name: '节点标识',
      tags: ['这是一个标签'],
      description: '这是一段描述',
      image: '',
      category: '分类一',
      script:
        "# -*- coding: utf-8 -*-\n# Desc : 针对蚁剑连接php后门时用ascii码编码的流量数据进行解密1\n\nfrom urllib import unquote\nimport re\n\nencode_body = xbot.args()[\"encode_body\"].strip()\ndata_url_decode = unquote(encode_body)  # url解码\ndata_lower = data_url_decode.lower()  # 字符串中的大写字母全都转换为小写\n\nfind_chr_expression = re.compile(r'((chr\\(\\d+\\)\\.)+(chr\\(\\d+\\)))')\nfind_chr_expression_result = find_chr_expression.findall(data_lower)\nend_data_list = find_chr_expression_result[0][0].split('.')\n# print(end_data)\nfor n in range(0, len(end_data_list)):\n    new = eval(end_data_list[n])\n    end_data_list[n] = new\n# print(end_data_list)\n# 将解码后的数据替换回到原始字符串中\nend_data = re.sub(r'((chr\\(\\d+\\)\\.)+(chr\\(\\d+\\)))', (''.join(end_data_list)), data_lower)\nxbot.results({\"text\":end_data})",
      variables: {
        value: [
          {
            display: '变量一',
            name: 'lp',
            required: true,
            type: 'number',
            default: 100,
            defined: 0,
            description: '45'
          },
          {
            display: '变量二',
            name: 'jb',
            required: false,
            type: 'object',
            default: { name: 'lp', age: 18 },
            defined: 0,
            description: '45'
          }
        ]
      }
    }
  },
  {
    id: '222',
    node_name: '安全设备自动化封禁',
    node_type: 1,
    created_at: '2020-07-11',
    updated_at: '2020-07-11',
    node_script: 'javascript',
    node_id: 'ACTION_EXECUTION_NODE',
    node_conf: {
      display: '安全设备自动化封禁',
      name: '节点标识2',
      tags: ['这是一个标签'],
      description: '这是一段描述',
      image: '',
      category: '分类一',
      script: '这是一段脚本',
      input: {
        form: [
          {
            label: '封禁标识',
            field: 'block_dev_ban',
            type: 'Input',
            required: true
          },
          {
            label: '设备类型',
            field: 'block_dev_type',
            type: 'Select',
            required: true,
            options: [
              {
                label: '设备类型1',
                value: 0
              },
              {
                label: '设备类型2',
                value: 1
              }
            ],
            service: {
              method: 'POST',
              url: 'string'
            }
          },
          {
            label: '设备厂商',
            field: 'block_dev_name',
            type: 'Select',
            required: true,
            options: [
              {
                label: '设备厂商1',
                value: 0
              },
              {
                label: '设备厂商2',
                value: 1
              }
            ],
            service: {
              method: 'POST',
              url: 'string'
            }
          },
          {
            label: '设备版本',
            field: 'block_dev_edition',
            type: 'Select',
            required: true,
            options: [
              {
                label: '设备版本1',
                value: 0
              },
              {
                label: '设备版本2',
                value: 1
              }
            ],
            service: {
              method: 'POST',
              url: 'string'
            }
          },
          {
            label: '认证TOKEN',
            field: 'block_dev_token',
            type: 'Input',
            required: true
          },
          {
            label: '设备接口',
            field: 'block_dev_url',
            type: 'Input',
            required: true
          }
        ],
        value: {
          block_dev_ban: '封禁标识',
          block_dev_type: 0,
          block_dev_name: 1,
          block_dev_edition: 0,
          block_dev_token: 'token...',
          block_dev_url: 'url...'
        }
      }
    }
  }
  // {
  //   id: '2',
  //   node_name: '通用脚本执行',
  //   node_type: 1,
  //   created_at: '2020-07-11',
  //   updated_at: '2020-07-11',
  //   node_script: 'javascript',
  //   node_id: 'ACTION_EXECUTION_NODE',
  //   node_conf: {
  //     display: '通用脚本执行',
  //     name: '节点标识',
  //     tags: ['这是一个标签'],
  //     description: '这是一段描述',
  //     image: '',
  //     category: '分类一',
  //     script: '这是一段脚本',
  //     input: {
  //       form: [
  //         {
  //           label: '标识',
  //           field: 'display',
  //           type: 'CustomFormItemType',
  //           default: 'any',
  //           placeholder: 'string',
  //           options: 'any',
  //           required: 'boolean',
  //           validator: 'Function',
  //           service: {
  //             method: 'POST',
  //             url: 'string'
  //           }
  //         }
  //       ],
  //       value: [
  //         {
  //           display: '输入变量一名称',
  //           name: '输入变量一标识',
  //           default: '123',
  //           type: 'number',
  //           description: '这是一段描述'
  //         },
  //         {
  //           display: '输入变量二名称',
  //           name: '输入变量二标识',
  //           default: '321',
  //           type: 'string',
  //           description: '这是二段描述'
  //         }
  //       ]
  //     }
  //   }
  // },
]
